package com.ruoyi.inventory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存预警设置对象 inventory_warning
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class InventoryWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设置ID */
    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 库存下限 */
    @Excel(name = "库存下限")
    private Long minQty;

    /** 库存上限 */
    @Excel(name = "库存上限")
    private Long maxQty;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setMinQty(Long minQty) 
    {
        this.minQty = minQty;
    }

    public Long getMinQty() 
    {
        return minQty;
    }

    public void setMaxQty(Long maxQty) 
    {
        this.maxQty = maxQty;
    }

    public Long getMaxQty() 
    {
        return maxQty;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("minQty", getMinQty())
            .append("maxQty", getMaxQty())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
